Level services,problems and protocols


Network Layer

Services Provided by the Network Layer


Network Layer Protocols


ARP


How ARP works?

If the host wants to know the physical address of another host on its network, then it sends an ARP query packet that includes the IP address and broadcast it over the network. Every host on the network receives and processes the ARP packet, but only the intended recipient recognizes the IP address and sends back the physical address. The host holding the datagram adds the physical address to the cache memory and to the datagram header, then sends back to the sender.

Network Layer Protocols


Steps taken by ARP protocol

If a device wants to communicate with another device, the following steps are taken by the device:

Network Layer Protocols

In the above screenshot, we observe the association of IP address to the MAC address.

There are two types of ARP entries:



RARP

Network Layer Protocols


ICMP

Network Layer Protocols

The Format of an ICMP message

Network Layer Protocols

Error Reporting

ICMP protocol reports the error messages to the sender. Five types of errors are handled by the ICMP protocol:

Network Layer Protocols


IGMP

Network Layer Protocols

The Format of IGMP message

Network Layer Protocols


Where
Type: It determines the type of IGMP message. There are three types of IGMP message: Membership Query, Membership Report and Leave Report.
Maximum Response Time: This field is used only by the Membership Query message. It determines the maximum time the host can send the Membership Report message in response to the Membership Query message.
Checksum: It determines the entire payload of the IP datagram in which IGMP message is encapsulated.
Group Address: The behavior of this field depends on the type of the message sent.

Network Layer Protocols